refreshing distance.length after records datetime updating