update the hash algorithm