WHAT IS A MAIN SWITCH AND HOW DOES IT WORK