process order refactoring