max depth with max nodes