changed hash method again