added wrapping to bsplines