remove comments in processAgentData