updates the file structure