added p3 and p4