automatically change predicate after selection