callable function set_entities