remove leftover switch reference