removed unused predicate function