explanation of compare phase