refactor - method createMarker()