matrix transpose almost works