Altering the way someone's mind works.
That causes the mind to boggle; that is beyond one's ability to understand or figure out.