change uniqSet from unordered_set to set