some progress on tddec project (before p.70)