adding barcode code to scan barcodes