switch statement debugging