logTracking func added