added ncmatrix