added line to addAgent to set agent to empty string