restruct directry tree