regid solving