transfer matrices now working !