made M[3] the same as N[3] in all C code, but kept gM Grid for legacy reasons