small optimization to agents