updating cursor in nameToID