refactored mbkm w/o replacement + minor change