reg frm  first approach