modified markerTracker with actual code