formatting directory structure