making a spline generator