adjust dir structure