changed polylines to lines