[BenweiZhu] modify piParents qq pq pq condition