moved logic checking if the item exists to the Set()