spline getting closeish, and restructed for clarity