added default for switch case