changed from ArrayList to HashSet when creating a new Collection