[Ben]: modify formula for pq pr or ps qr to fix bug