done with entity manager