modulus working only for ints