adding ast, and working on the tree