edit old file & create new file