macos compatible & HashMapMetrics