found error: char '-'fixed and now it can automatically swith to the mode