modified the polyline part