updated spline regression second pass