preparing for saving file changes