set the hash algorithm