refactor Print method for MatrixChange to avoid cross printing under multiple threading