It consists of cutting or scraping away most of the connections to and from the prefrontal cortex , the anterior part of the frontal lobes of the brain .
The operation cut the connections from the pre-frontal cortex ( front part of the frontal lobes ) to the rest of the brain .