modified the tracking code