simplifyIntMod