now we use entity manager