update switch case