refactored default second hash function