link element scale to distance