revert to simplify
toReached is set after seekto hit so that current line is accepted
fixed boundary and looping issues