used tostring rather than modulus