switch which matrix is transposed and commented out heavy part