managed to generate spline