adding update for agent