checking hashcodes