some tweaks to mmo algorithm