correct switch statement