added swapping of parameters in b matrix between chains