add tree compare