modified hash functions