home refactoring