Update tracking.cpp