merge hashes