update election and MachineInfo