change hash set to hash map