make the hash operator consistent