minor changes made to the matrix