check only reachability when iterating