corrected order of commands