there are "global index" and "index" in comments in this class. are they different or same? If same, it's better to use the same words for consistently.