Nostalgia makes us crave the past. It brings back fond memories of family road trips to the Grand Canyon, a crush at summer camp, hanging out with high school friends—the good old days. It seems counterintuitive, then, that such a backward-looking emotion would inspire original ideas, but that’s exactly what new research has found. It turns out that nostalgia may actually make people more open to new experiences, and this effect can boost creativity.

Dig into your past. Just make sure you don’t get stuck there.

Weirdly, nostalgia used to have a bad reputation—psychologists interpreted it as people avoiding the present, and it was even classified as a psychiatric disorder at one point. But recent research has shown that nostalgia can have positive effects, like making people more optimistic about the future and more willing to set new goals. Psychologists from the University of Southampton wanted to see if nostalgia benefits another personality trait, creativity—a paradox that few have considered. In a set of experiments published in the Journal of Experimental Social Psychology, Wijnand van Tilburg and his team tested nostalgia’s influence on creative writing.

For two of the experiments, the researchers asked 175 participants to conjure up a nostalgic memory, which they defined as a memory that triggers “a sentimental longing or wistful affection for the past” (they told the control group to think of an ordinary memory). Then they asked participants to write stories that either included a princess, a cat, and a race car, or started with the sentence “One cold winter evening, a man and a woman were alarmed by a sound coming from a nearby house.” When these stories were evaluated, people who reminisced nostalgically scored higher on linguistic creativity than those who recalled ordinary memories.

But van Tilburg wanted to make sure that nostalgia directly stimulates creativity—that it’s not just about people feeling good when they think of happy memories (a lot of research has shown that positive emotions can boost creativity). So he and his team set up another creative writing test, where 106 participants considered either a nostalgic memory or a time when they had a stroke of good luck (such as finding money on the ground), and then wrote stories. Again, the researchers found that the nostalgic participants produced more creative prose compared with people who recalled a positive memory.

It’s not totally clear why nostalgia would nurture creativity, but van Tilburg has a theory. There’s already a well-established connection between openness to new experiences and creativity. “One of the strongest personality traits that predicts creativity is openness,” van Tilburg says. “People who are very open to novelty are more likely to, say, play around with new ideas or create connections between things where others would not.” Nostalgic memories may give people a sense of belonging, meaning, and security that opens them up to future experiences, and that openness encourages creativity.

In the study, he tested this connection by asking 62 participants to self-evaluate for statements like “I see myself as someone who is curious about many different things.” He found that nostalgia made people see themselves as both more open and creative. Perhaps not the strongest evidence for his theory, but it could suggest that openness plays a part in nostalgia’s effect.