added tree metric