do loop edit