added regiter node function to initialize a node