rectified addEntities()