calculated p and q