ed with maximum d