fixed switch-case style mistake