arrange files by phase1/phase2