adding verifyHash function