replace set comprehension with set function