spline interpolation in the pipe