spline code changed