organizing P1 files from P2 files