changes entity manager