reverse order of a few commands