added between helper function, added markerOpacity