added "getMap" method