renamed setUserDefinedPredicate to addUserDefinedPredicate