code for use w/ arcGIS carbon tool