AST done, but will have to simplify it