updating dir structure