Got rid of matrix transpose