[matrixT.sh] improvement