changes to the matrix