added modulus division functionality