changed debug message to node type