refactoring for node info call