added prototype code to remove unused barcodes