check of distances works now