Basal ganglia are strongly interconnected with the cerebral cortex , thalamus , and brainstem , as well as several other brain areas .
The basal ganglia ( or basal nuclei ) are three areas under the cerebral cortex .