add hash method