bad refactoring