Shape of the brain influences the way it works