fixed typo in function for Reg