Modified Apply XY