Maybe put this declaration behind the switch too?