update Agent