adds hash functions