new function Reg