moved get hash method