update the file structure