begin spline implem from NR