modified findTerritories