removing dependency injection