remove submatrix