update files hierarchy