Refactoring generate fix dozens method