g_energy was not being executed