make map kv copy function public