Cleaning some hash functions