added setup function to PredicateHandler