made put func in hashing consistent