added global g_subdivision_level for debugging purpose