Keeping healthy could become more costly as climate change and water scarcity cause a huge drop in the global production of vegetables and legumes, scientists said on Monday.

The amount of vegetables produced could fall by more than a third, especially in hot regions like southern Europe and swaths of Africa and South Asia, said researchers from the London School of Hygiene and Tropical Medicine.

By analyzing studies across 40 countries, with some dating as far back as 1975, they found that hikes in greenhouses gases, water scarcity and global temperatures lowered the amount of vegetables and legumes produced.