refactoring successful