levels: customized number of trees