extract a constant for max distance