partially implement voting scheme