Wrote the phase reflection of phase 1 and phase 2