working on the tracking algorithm