fix exponent error r2=xx+yy+zz