added indexing for node types