what's inside a switch