corrected line coloring for drawing