Warning: This article contains spoilers for the 100th episode ofDC’s Legends of Tomorrow.
Legends of TomorrowstarCaity Lotzhad a blast directing the zany superhero dramedy’s 100th episode.
According to Lotz, the scene was mostly improvised.

Caity Lotz as Sara Lance performing karaoke in the 100th episode of ‘Legends of Tomorrow’.Colin Bentley/The CW
“That one changed a lot [from the script],” Lotz tells EW.
None of that dialogue was pivotal.
And it’s like, that’s why.

The cast of ‘Legends of Tomorrow’ in the 100th episode.Colin Bentley/The CW
So like that silly string at the end, none of that was in the script originally.
[I] just kind of surprised everyone on the day, which was really fun."
There was a lot of improv in that too, like Nate’s karaoke.

The cast of ‘Legends of Tomorrow’.Jeff Weddell/The CW
All of those scenes were so much fun."
All those memories helped Gideon realize that the happy and sad moments are what help people grow.
Apparently, that’s not how the touching scene was initially scripted either.
And we decided to change it to the hallway.
To be honest, at first I was worried that that scene was going to feel really corny.
It could have gone there, and it didn’t.
So the feeling just really, I think, landed.
So that was very, very cool."
Like when you look down the hallway, you just, ‘Wow.’
It’s a hundred episodes that we’ve done together and the power of that.
When I watched it and then seeing Gideon look back, [it] made me tear up."
Of course, the 100th episode wasn’t all warm and cuddly.
Determined to get his revenge on the Legends, Bishop decided to reprogram Gideon.
“In this episode, we see how powerful Gideon is as well.
““That will play a big part in the rest of the season.”
DC’s Legends of Tomorrowairs Wednesdays at 8 p.m. ET/PT on the CW.