change how hash functions are defined