update

fixed: when barcodes change
added comparison
auto set last barcode