added ED code