changed to hashset removing dup problem