The song was written by Thicke and Lamar alongside Dr. Luke , and produced by will.i.am and Cirkut . The song was written by Thicke and Lamar together with Dr. Luke and produced by will.i.am and Cirkut .