near the end, with loop in progress