Reformat ast