clean up for P3