update Bspline Ref codes