adds code to unpress switches if initially pressed