updating directory structure