added index on agents