cleaned up code, updated carbon emissions