added simple hash functions