strong sketch done. TODO: improve doc
node index starts at zero