document makeSwitcher