added polyline stuff