Revert "use set instead"

This reverts commit 6195dfa46996b23b9828c27fa9ab89158ddbc3e7.