added spline length limits