begin order calculations