example spline functioning