change mod to modulo