good practice stupid methods for AST