array of distances added