already sorted TreeSet instead of HashSet for completion