modified reg2_na to fit in controller and saved as reg1