voting in three phases