adding outputting the expected and barcode