The effect of remembering is to avoid old mistakes