added switch case