a portion of cooling air for cooling the turbine section of a gas turbine engine is tapped and passed through a heat exchanger . the portion of the cooling air is cooled in the heat exchanger , and the heat taken out of the portion of the cooling air is utilized to generate electricity .