resolve difference between trees