changing to spline curve to connect lines