wrote stopping and switching