re-order operations