edited ballot functions