add phase1 and phase2