correct hash function in object hash