update for aggregate