use the modulus operator as it's more efficient