refactoring mofo