scoping issue in switch statement