how to do map of structs