refactor friends