p4 before and after