added basic switch statement