update for hash