remove setRoot method