added p,q,r from BA