edited loop