finding distance should work, result is printing in console