Fixing ast
expect function beginngins