added a function for associating entities with hf