initializing all switches