added hashing methods