transit from using name_exists to is.element