trying new way of dependency injection