When we’re feeling more positive, we’re likelier to consider future outcomes, researchers believe. That encourages us to select foods that will boost our long-term health instead of yummy but unhealthy snacks that only give us a short-term high. If you’re in the habit of reaching for cookies and candy when you’re feeling down, try taking the focus off of the here and now and looking further on down the road. You might find it easier to resist those M&Ms.

READ MORE: How to Stop the Stress-Eat Cycle