fixed the switch statements

yeah this