fixes barcode functions