adding constants into global, formatting output just to show initial and resulting distances