corrected end of cmd code