added the matrix