formatting dir structure