updated the wrtie access to MapMarker