In recent years, it’s become clear that a diet full of nuts, leafy vegetables, seafood and other nutrient-dense edibles can do the brain some good. Now, a study has uncovered evidence that it’s not just what we eat, but how we combine foods into a “food network,” that may influence our brain health as we age.

A study reported in Neurology asked older adults to complete a survey detailing foods they had eaten over the past year. Five years later—with medical checkups in between—the subjects were evaluated again. Those without dementia were more likely to have accompanied their meat intake with more diverse, healthier foods, including fruit, vegetables and seafood. Those with dementia were more likely to have paired processed meat products such as deli meats with packaged snacks like cookies, starchy items like potatoes, and alcohol. Overall, those with dementia placed less emphasis on eating a diversity of healthier foods.

As with most nutrition studies, relying on subjects’ accurate recall of diet habits via questionnaire versus controlled monitoring is a limiting factor. However, the findings lend more support to the notion that nutrition is a modifiable risk factor in relation to brain health and that variety is the spice of life.

See also: Your Brain on Food