fixed switch statement error
2