switching branch