first draft in measuring the distance