Integrated the matrix