change matrix: element, error, index;