assuming arg.X,Y to be int32