added maxdepth to number of columns that can be created