adding switches