fixing bloat in double-hash approach