used map instead of multimap again, but this time we correctly record everything, w/o ignoring the element if it was accessed before via another method.