tracked down a bug - floating point errors meant that in some cases the integer number of searches to be done was incorrect.