switch to using multimap class