g and g_iter