changes over to use slice directly instead of trying to work
through the node slice