refactor tree classes