made closed polyline an option