edited Node::emitIndex