New formulation of the Green element method to maintain its second-order accuracy in 2D/3D