project 3 (switching is out of sync)