wrote calibrate distance method (untested)