checkmatrix