adjust gbm n.trees to variables