update track logic