updating hash