moving files to proper location in the tree