first iteration of the tracking code