changed spline to pchip