change range of hash of tuple to [0, maxint]