create distance