One of the possible potential candidates for describing universe's rapid expansion is modified gravity. In framework theory gravity $f(R,G)$, present work features materialization anisotropic matter, such as compact stars. Specifically, to learn more about physical behavior stars, radial, and tangential pressures well energy density six stars namely $Her X-1$, $SAXJ1808.4-3658$, $4U1820-30$, $P...