projectTree refactoring