modify polyline demo