unknown $reg; fix