merge switches