A method and system of compensating for a damaged brain node is disclosed. The damaged node is determined by techniques such as fMRI or neural recording. A healthy node that can compensate for the function of the damaged node is determined. A stimulating electrode is placed on at least one functioning node to bypass the activity from the damaged node to compensate for a missing node. The functioning node is then stimulated to compensate for the damaged node.