Let’s face it, sleep is the best. But, much to our despair, getting a good night’s sleep is rare for a growing number of us. If you’ve struggled to get your eight hours for a while, then you’ve probably tried pre-bedtime yoga, five minutes of meditation, you’ve probably sipped on chamomile tea and done the “no tech after 8pm” rule. If you’ve tried everything and still haven’t come up with the truly, blissful sleep results you’d been hoping for then new research might shed some light.

According to a new study published in the Journal of Clinical Sleep Medicine, it could be our before-bed snacking habits that are throwing off our journey to the land of nod. The results from the study showed that those who consumed a higher fibre intake spent more time in deep, slow wave sleep (that’s the really rejuvenating kind). In contrast, a high sugar intake was associated with restlessness and waking up more often during the night.

Saturated fat didn’t get a good rap as a sleep aid either, with participants who got a higher percentage of energy from sat fat experiencing less slow wave sleep.

Those who don’t skip there protein are getting better sleep with results suggesting that eating a meal high in protein and low in saturated fat was conducive to good sleep. Those who ate a high protein meal fell asleep more quickly than their high fat eating counterparts. The finding that diet can influence sleep could have tremendous health implications and further research will need to be conducted to evaluate the extent of the relationship.

But in the meantime, if you’re struggling to get a restful night under the covers it might be worth skipping the sugary nighttime treats in the name of more slow wave shuteye.