update get barcodes function