improving the co2 part of the calculations