updating tostring on some ast