Memory as a way of overcoming trauma