friendy refactoring