renamed method to getHash