returning largest substructure now instead of hard-coded