fixed distance computation problem