copy immutable set from a set instead of list.