added arbitrary adjacent switches