Changing files to index