changes in indexes to get rid of duplicates