matmult and formatter