changes in hash function