fix issue for 4.4.4 in MEM, and new discriminants for Zg and gg