distances updated