replace validators with predicates