implementing predicate annotator for the preview