changes gMed to g in output