factors affecting distance