pruning file structure