using distance gives more accurate result