refactoring node removed node_type