oops fixed g_R