change hashing function and hash table storage