docs: def distance(self, val):
          """ set the distance parameter """
          tmp = 2
          try:
              int(val)
              if val > 0 and val <= 2:
                  tmp = val
          except (ValueError, TypeError):
              pass
          self._distance = tmp