edits index file