implemented slave voting