coloring added as a function