update entity id tracking data structure