Mark Ronson and Dua Lipa.Photo:Ricky Vigil/GC; Axelle/Bauer-Griffin/FilmMagic

mark ronson dua lipa

Ricky Vigil/GC; Axelle/Bauer-Griffin/FilmMagic

Barbiefans could have spent this summer singing different lyrics toDua Lipa’s “Dance the Night.”

Mark Ronson, who producedthe soundtrackfor the Greta Gerwig-directed film,revealed on Instagramthat Lipa decided to rework the song and shared insight into their creative process.

He posted behind-the-scenes clips of Lipa in the studio and explained how inspired the pop singer was once they were able to screen the scene they were writing music for.

He said that when they first worked on “Dance the Night,” the scene they were writing for was being edited, but they still “wrote a whole damn song that [they] all loved.” Then, once they got a first-look at the moment in the film, which features Margot Robbie’s Barbie hosting a dance party at her Dreamhouse, the singer was compelled to “rewrite the whole thing.”

“We got back in the studio even though she was in the middle of a massive world tour,” he wrote. “We went in my studio, turned the scene on and let the beat rock. Dua started to freestyle lyrics that fed right off what Margot was doing.”

“I started to get goosebumps,” he added, explaining how the recording artist who also plays Mermaid Barbie in the film intended to match the word “up” with when Robbie’s hands were in the air.

The clip Ronson shared also reveals how Lipa chose to pair the line “Come along for the ride” with the actress’ gestures.

He continued, “That’s why I f–ing love Dua so much: we had a whole song and she was down to spend a hundred extra hours tweaking a word and a line here of there to make not just the song but the WHOLE SCENE better.”

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 celebrity news to compelling human interest stories.

Ronson shared the footage after the “Levitating” singeralso posted clipsfrom the recording process on Instagram on Friday.

The Margot Robbie and Ryan Gosling-starring film also recentlyreached a major milestone, surpassing $1 billion in ticket sales at the global box office.

source: people.com