remove allEntities variable