renamed index to index1