rudimentary function for coloring map