adding the correct names to the files to be saved