added modulus statement