try with nmatrix head