added entity manager