by detecting the scanning head or scanning carriage