compare tree