migrate to contains predicate