more of the same. i believe all instances of pos[1] and [2] have been replaced with pos.x and .y