created factory, injected service