added distances to common parent