improve hashing