removed the exit option in the switch case statement