adjust hash length