moved fragment coloring code to help #9