changed the order of commands