prepare to switch