update matrixThread