add calculateHash function