refactor CreateRegister func
refactor CreateRegister func and object struct / extend helper func