rename the file and update the file