write to ED