update files and dictionary