consolidate the switches