improve record_id