funny refactoring