updates rhs of contains on alter