replace lines with polyline