fixed switch suggestion for typedef enum