added code to check whether number of probes found is correct