added tree compare on add