exact distance calculation is working