added the ability to grab the distance