switched injector from repository to service