algorithm instead of loop (multimap)
preparation from_value for map