using the scanning elements as detectors