update the retrack fuction and debug the track msg