change structure of directory