working on DT-TMM numeric stability stuff