check for node types