move controller logic to model sigma orders