add function of regist