I think the cast to `set` is redundant