change the structure of the dir