adapting index to new filenames