Feeling bloated and gross is a buzzkill whenever it happens, but it seems to suck even more during the summer when bikinis and carbonated cocktails are often on the agenda. While there are plenty of hacks to keep you feeling your best (avoiding salty foods, staying hydrated and load up on probiotic-rich foods), if it’s something you find yourself dealing with on a regular basis, you might want to consider a lifestyle change that one study found to work wonders: getting more vitamin D.

Published in the British Medical Journal, researchers found that 82 percent of participants with irritable bowel syndrome (IBS) weren’t getting enough vitamin D. Even people in the study who were taking a probiotic still experienced some uncomfortable gut problems if they weren’t getting enough vitamin D. Game-changing info, right?

Okay, so now that you know, you’re probably wondering what to eat, right? Fatty fish (like salmon and tuna), eggs, and portobello mushrooms are all great sources for vitamin D. And more great news: so is the sun—as if you needed another reason to get outside this weekend.Research has shown it’s best to get your vitamin D from a variety of places (food, supplements,and sun), so vary your sources to feel your very best.