added max AST depth