move coloring dealing from color ptr