when the switch is closed.