refactoring gone wrong