simplifying cubic spline