remove switch when no next occurrence