first change=no looping to find docid