changed MAX_HASH_CLOCK to 5000