modified barcode_util