fixed color function