rewrote the getPeopleInGroups method in case that's where the bug is