next: get end element