colorPalette param is now passed