update P3 and adding P4