use map instead of set :-(
Revert "use map instead of set :-("

This reverts commit 0a2086c761e7224e4daba201307756f28215c268.