refactoring to methods set orders.