incorrect refactoring