removed unnecessary code from initializeMap function