refactoring preview