We have developed a gain flattening filter (GFF) for an erbium doped fiber (EDF) without temperature control systems. This GFF, which consists of temperature-sensitive long period gratings (LPGs) and a temperature compensated slanted fiber Bragg grating (SFBG),follows the gain shift of EDF with temp