update order of commands