make agreemant and insert barcode