prevent from creating loops in the tag family tree