latest changes with functional pagerank code