adding trackAll function