diagram transpose almost done (just missing checks)