Co2 generation and reduction