get unique barcode functionality to work.