adding ability to select distance
done