re-order dependencies