updating file hierarchy