removing g_thread