int packed into long instead of XY class