where is keepmaxballot()?