residmat in MG