What do you mean by filter? I would use if-then statements from what you're making the program