trying to transform from ast to continuation