part of orders; refactoring