assert on global ids near the end