use set comprehensions instead of list compreh