copied over node rank from the framework