function ast note now only has one parameter