remove switch directive