unregister2 must has regid