Wouldn’t it be nice if we automatically chose the adaptive interpretation of events as soon as they happened? In order to reprogram bad emotional algorithms, we have to examine the beliefs at their root, identify the distortions, and practice their rational rebuttal until it has been internalized. This method for obliterating bad emotional algorithms and replacing them with adaptive ones is known as cognitive restructuring.