add distance file incomplete