fix a few spacing
z-distance for perfect pixel in 2d
chaining