adapt examples to distance