update for dict