added toggle for spline