hash helper