modified barcord_refistration