switched to using a hermite spline, and unnecessarily complicated the code