add hash function to object
add hash function to object