allow either key or value as valid