algoryth of tracking v1
Update function of tracking