refactoring production