fixed logic with $ignore_barcodes