fixed calc_12C to prevent problems with timeseries