corrected error in order of commands