agent->algorithm change