Update hashset method