add tree classes