use newDoc.path instead of file1 for they are the same thing