add spline interpolation