switches to master