n4g_fit