get the correct hash