missed a spot of coord swapping