refacoring

changing the type of Node Id