working on template errors for unordered_set
some changes