draw lines as polygons