simulation: changed map.emplace to map.insert for older standards compliance.