updated spline: added weights