finished function-regist