filter the generator elements