eliminate duplicate using hash set