Renamed index to index