 It was written by Aguilera, Mark Ronson, Kara DioGuardi and Raymond Angry, and produced by Ronson and co-produced by Aguilera.The song is built around samples of "Window Raisin' Granny" (1973) by American group Gladys Knight and the Pips and "So Seductive" (2005) by American rapper Tony Yayo.Due to the inclusion of the samples, the original songs' writers obtained writing credits.