typo in switch statement