adding hash functions