Dean Burnett said this quote

Everything you are is a feature of your brain, and as such much of what your brain does is dedicated to making you look and feel as good as possible. ]...] For example by modifying your memories to make you feel better about yourself.