added repeated values removal to set creation