updated func spline