2nd commit

update length calculation of spline