change structure of files