refactor the markerTypes