refactoring the root folder