apply filtering on set comprehension