use the set instead of the array