Keep fX2D and fY2D local to method that needs them