set condition for when to compute modulus..