some changes to advise calls in pagerank