Put in correct N and M values for dm rep