piecewise spline fitting tried