fixed the computation of delta in DEC and created DEC2 (this serves
as the basis for EC and TEC)