Renamed index2 to index