add in short circuit for setting the same value to the palette