save g_total