replaced List with Set for eliminate duplicates.