add polyline to points code