This article originally appeared on PEOPLE.com.
When Jennifer Lopez’s “On the Floor” came out, the song shot to the top of the charts — and now the star says it’s all thanks to her 8-year-old twins, Max and Emme.
“I had given birth and the kids honestly just gave me a new direction,” the singer says in The Jess Cagle Interview with PEOPLE and EW editorial director Jess Cagle.
“They just made me realize… what was real and what wasn’t real,” says Lopez, wiping away tears. “They just changed everything.”
The Shades of Blue star (the finale of the hit NBC series airs March 31) felt invigorated after becoming a mom,and “started thinking about life in a different way,” she says. “‘On the Floor’ honestly was me again going, ‘Oh yeah, get back out there! You’re an animal. You’re a beast. Pull up your panties and get back out there.'”
The American Idol judge, 46, wanted to provide her kids a “great” life and found herself examining her own. “I started asking more questions of myself of love, of what was right, of what was wrong,” she says. “I knew for their life to be great, I had to be great and I needed to fix some things and that is where the music came from.”
“On the Floor” became the entertainer’s “anthem” and motivated her to make some changes in her life. “I knew it immediately that that was the song,” she says. “It was everything that I was wrapped into one, and it was also saying, ‘You gotta go hard. You gotta get on the floor. You gotta get yourself together and do this right now.'”
Shades of Blue airs Thursdays on NBC; watch more excerpts from The Jess Cagle Interview with Jennifer Lopez below!