make voting mechanism work