refactoring

changing the type of Node Id