parsetree insertion work