g in res