make the vote DRY