change entity to object with mutiple entities addition