 The song was written and co @-@ produced by Nikesha Briscoe and Rafael Akinyemi of the production team , The Outsyders . Spears recorded main vocals with Brendan Dakora at Glenwood Place Studios in Burbank , California and Bojan " Genius " Dugic at Legacy Studios in New York City . Pro Tools engineering was done by John Hanes , assisted by Tim Roberts . On September 19 , 2008 , a low quality 37 second snippet of the song was posted on the official website of 107 @.@ 5 The River , a radio station in Lebanon , Tennessee . According to Jive Records , a representative of the label played a rough mix of the song for people at the station , who recorded it and leaked it on the Internet . The snippet was later removed from the website . The song was scheduled to premiere on September 23 , 2008 , but the release was delayed when Spears went into the studio to re @-@ record some vocals . The new recordings were done with Jim Beanz and Marcella " Ms. Lago " Araica . The song was finally mixed by Serban Ghenea at MixStar Studios in Virginia . 
