Tom Holland inSpider-Man: No Way Home(2021).Photo: Sony Pictures/Marvel Entertainment/Courtesy Everett Collection

SPIDER-MAN: NO WAY HOME

Warning: This post contains spoilers for Marvel’s latest Spider-Man film,Spider-Man: No Way Home.

Working onSpider-Man: No Way Homewas a collaborative process for actors who’ve played the famous web slinger, new and old.

In a recently published interview withThe Hollywood Reporter,No Way Homescreenwriters Chris McKenna and Erik Sommers opened up about the contributionsTobey MaguireandAndrew Garfieldmade when they signed on to reprise their roles as their respective versions of Spider-Man/Peter Parker for the recently released Marvel film’s final act.

“They had thoughts, and it was really interesting and helpful to see their thoughts,” Sommers told the outlet. “No one knows the character as well as — or gives as much thought to the character — as someone who has to then embody it and sell it. … It definitely shaped what we did.”

Never miss a story — sign up forPEOPLE’s free daily newsletterto stay up-to-date on the best of what PEOPLE has to offer, from juicy celebrity news to compelling human interest stories.

The third installment in Marvel’s Spider-Man franchise follows Holland’s Parker navigating the world after his superhero identity is revealed.

Parker attempts to change the course of history with help from Dr. Strange (Benedict Cumberbatch), but the two hit a major snag when they accidentally open up the multiverse, allowing villains — alongside Maguire and Garfield’s versions of Spider-Man — to come through from alternate realities.

Tobey Maguire; Andrew Garfield; Tom Holland

Want to get the biggest stories fromPEOPLEevery weekday?Subscribe to our new podcast,PEOPLE Every Day,to get the essential celebrity, entertainment and human interest news stories Monday through Friday.

According toTHR, Maguire, 46, and Garfield, 38, both secretly signed on to the project in December 2020.

The outlet reported that Maguire, who playedSpider-Manin three films from 2002 through 2007, didn’t want a lot to be revealed about his character following his final film, while Garfield — who starred in twoAmazing Spider-Manfilms from 2012 to 2014 — wanted to take a deep dive into the dark emotions his version of Parker explored following the death of Gwen Stacy (Emma Stone) inThe Amazing Spider-Man 2.

RELATED VIDEO: Zendaya on Tom Holland: “The Superhero Is Also a Good Person”

Earlier this month,No Way Homebecame thefirst film to make $1 billion at the box office worldwide since the COVID-19 pandemicbegan, according toCNN Business. It took 12 days to do so.

The film is also the third-fastest movie to reach the billion-dollar milestone:Avengers: EndgameandAvengers: Infinity Warpreviously did so in five days and 11 days, respectively.

The last movie to garner $1 billion at the box office wasStar Wars: The Rise of Skywalker, which hit theaters in December 2019. Many countries began shutting down due toCOVID-19in the months immediately following the film’s release.

Spider-Man: No Way Homeis now playing in theaters.

source: people.com