updated enum switch case