better pallette lookup