coloring based on type