inverted and simplified coloring
improvements