forgot to check for even/odd and swap 1 and 2 if true