use device to generate filter