typo: switches between (a_1,a_2) and (x,y)