fixed syntax error in switch statement