add dependency injection with inject