made a global index for nodes-statements, #49