corrected indexes to reflect the arrangement q1 = Ex, q2=Ey, q3=hz