fixed line rendering and vertex coloring