update total_votes func