Some remarks on Cohen-Lenstra heuristics