newfile to index