working on generation of nscompoundpredicate