finish syntax tree