allow setting of hash length