use record-code instead of record-name