add more logic in displayNamesInGroup for big user bases