polylines, polygons clean up