added mutex on map