bsmf alg updated