switching mechanism