adjust color function