removed unnecessary dependency injection of engine