utils: hashset functions