removed precalculation of distance. if it is time to the end, we could
implement it. (see issue #11)