clean up of vote outputing code