change p1 to be OR instead of AND