the toggle script