region where attractive interaction exists The tunneling current, being in the sub-nanoampere range, is amplified as close to the scanner as possible. Once tunneling is established, the sample bias and tip position with respect to the sample are varied according to the requirements of the experiment. As the tip is moved across the surface in a discrete x–y matrix, the changes in surface height and population of the electronic states cause changes in the tunneling current. Digital images of the surface are formed in one of the two ways: in the constant-height mode changes of the tunneling current are mapped directly, while in the constant-current mode the voltage that controls the height (z) of the tip is recorded while the tunneling current is kept at a predetermined level. In constant-current mode, feedback electronics adjust the height by a voltage to the piezoelectric height-control mechanism. If at some point the tunneling current is below the set level, the tip is moved towards the sample, and conversely. This mode is relatively slow, as the electronics need to check the tunneling current and adjust the height in a feedback loop at each measured point of the surface. When the surface is atomically flat, the voltage applied to the z-scanner mainly reflects variations in local charge density. But when an atomic step is encountered, or when the surface is buckled due to reconstruction, the height of the scanner also have to change because of the overall topography. The image formed of the z-scanner voltages that were needed to keep the tunneling current constant as the tip scanned the surface thus contain both topographical and electron density data. In some cases it may not be clear whether height changes came as a result of one or the other. In constant-height mode, the z-scanner voltage is kept constant as the scanner swings back and forth across the surface, and the tunneling current, exponentially dependent on the distance, is mapped. This mode of operation is faster, but on rough surfaces, where there may be large adsorbed molecules present, or ridges and groves, the tip will be in danger of crashing. The raster scan of the tip is anything from a 128×128 to a 1024×1024 (or more) matrix, and for each point of the raster a single value is obtained. The images produced by STM are therefore grayscale, and color is only added in post-processing in order to