distance consideration for tree comparison