Renamed index1 to index