added palette function for color scale management