index all set
correcting the index