modded algorithm