updated dynamic inject example