renamed matNxN to matN