add tree methods