changes to Modulo for undefined