refactoring projectTree