adding logs to MATRIX