another refactor for selecting friends