adding reg1.mag reg2.mag