refactoring node