some refactorings near fetch_friends method