assignEntity