correctly calculate dil/zen in both cases.