update to use node types