updated _createMap to match caller argument