added a check to make sure the tracker id existed first