mode selection with switch case