check hashes