match to hashes