update Caculate Distance