refactoring generate fixed dozens method