add rewrite predicate