update record_data, add distance formula computation