modify dir structure