we finally obtain the matrix