changing the order of commands