adding switching