moving estimation of delta in max_de func