for switch to master