The brain's contribution to keeping the mind healthy