change to switch case