added map<int, int> support