better output for ast