change structure of dir