Replaces XY with pos