BM algo finished